import 'package:calculator/pub/Routes.dart';
import 'package:flutter/material.dart';

import 'index.dart';

void main() => runApp(MyApp());

class MyApp extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    // return MaterialApp(
    //   title: 'Flutter Demo',
    //   theme: ThemeData(
    //     primarySwatch: Colors.blue,
    //   ),
    //   home: IndexPage(),
    // );
    return MaterialApp(
      color: Color(0xFF333333),
      debugShowCheckedModeBanner: false, //去掉debug图标
      initialRoute: '/', //初始化的时候加载的路由
      onGenerateRoute: onGenerateRoute,
      theme: ThemeData(
          platform: TargetPlatform.iOS,
          cursorColor: Color(0xFF03A9F4),
          focusColor: Color(0xFF03A9F4),
          backgroundColor: Color(0xFFF6F6F6),
          scaffoldBackgroundColor: Color(0xFFF6F6F6),
          appBarTheme: AppBarTheme(color: Color(0xFFF6F6F6))),
    );
  }
}
